
package com.clyme.expediente.dao;

import com.clyme.expediente.utilitarios.DataBaseException;
import java.util.List;

/**
 *
 * @author Luis
 */
public interface GenericDao<T> {    
    
    public void agregar(T t) throws DataBaseException;
    
    public void eliminar(T t) throws DataBaseException;
    
    public void actualizar(T t) throws DataBaseException;
    
    public List<T> obtenerTodosActivos(Class<T> clase) throws DataBaseException;
    
    public List<T> obtenerTodos(Class<T> clase)throws DataBaseException;
    
    public T buscarPorId(Class<T> clase, int id)throws DataBaseException;
    
    
}
